﻿@model ActionTrackerEntities.Reunion

@{
    ViewBag.Title = "Editar Reunión | Action Tracker";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section script
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>        
    <script src="@Url.Content("~/Scripts/jquery.ui.datepicker-es.js")" type="text/javascript"></script>    
}

@using (Html.BeginForm("Edit", "Reunion", FormMethod.Post, new { id = Model.IdReunion }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Editar Reunión</legend>
        @if (Session["MensajeError"] != null)
        {
            <div class="alert alert-success" data-dismiss="alert">
                <strong>@Session["MensajeError"].ToString()</strong> 
            </div>
         
            Session["MensajeError"] = null;
        }
         @Html.HiddenFor(model => model.IdReunion)
         @Html.HiddenFor(model => model.Proyecto)
        <div class="control-group">
            @Html.LabelFor(model => model.Descripcion)
            <div class="controls">
                @Html.EditorFor(model => model.Descripcion)
                @Html.ValidationMessageFor(model => model.Descripcion)
            </div>
        </div>
       
        <p>
            <input type="submit" value="Guardar" class="btn btn-primary"/>
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Volver", "Index")
</div>
